package com.sg.business.commons.labelprovider.complex;

import com.sg.business.model.Folder;
import com.sg.widgets.commons.labelprovider.ConfiguratorColumnLabelProvider;
import com.sg.widgets.registry.config.ColumnConfigurator;

public class FolderTypeLabelProvider extends ConfiguratorColumnLabelProvider {

	public FolderTypeLabelProvider(ColumnConfigurator configurator) {
		super(configurator);
	}

	public FolderTypeLabelProvider() {
	}

	@Override
	public String getText(Object element) {
		if (element instanceof Folder) {
			return ((Folder) element).getFolderType();
		}
		return ""; //$NON-NLS-1$
	}

}
